
#ifndef   __INPUT_OUTPUT_SIMPHONY
#define   __INPUT_OUTPUT_SIMPHONY

/* OUTPUTS */

#define   PIN_LED								RE5
#define   PIN_LED_DIR						TRISE5
/* RF TRANSMITTER */
#define   PIN_RF_TX							RD0
#define   PIN_RF_TX_DIR						TRISD0

#define   PIN_RF_TX_ENABLE					RD1
#define   PIN_RF_TX_ENABLE_DIR			TRISD1


/* DTMF RECEIVER NEED TO DO INTEGRATION INTO PROGRAM*/
#define   PIN_DTMF_EST						RE4
#define   PIN_DTMF_EST_DIR					TRISE4

#define   PIN_DTMF_ACK						RE6
#define   PIN_DTMF_ACK_DIR					TRISE6

#define   PIN_DTMF_SD						RE7
#define   PIN_DTMF_SD_DIR					TRISE7
/* DTMF */

#define   PIN_RELAY_1		RD4   
#define   PIN_RELAY_1_DIR	TRISD4   

#define   PIN_RELAY_2		RD5   
#define   PIN_RELAY_2_DIR	TRISD5   

#define   PIN_OUT_3			RF7   
#define   PIN_OUT_3_DIR		TRISF7   

#define   PIN_OUT_4			RF0   
#define   PIN_OUT_4_DIR		TRISF0   

#define   PIN_OUT_5			RF2   
#define   PIN_OUT_5_DIR		TRISF2   


/* #define   PIN_LCD_BACKLIGHT				RD5 */
/* #define   PIN_LCD_BACKLIGHT_DIR			TRISD5 */

/* #define   PIN_KEYBOARD_BACKLIGHT			RD4			 */
/* #define   PIN_KEYBOARD_BACKLIGHT_DIR	TRISD4 */

#define   PIN_MODEM_POWER					RE2
#define   PIN_MODEM_POWER_DIR				TRISE2	

#ifdef   MODEM_TYPE__SIMCOM
 #define   PIN_MODEM_WAKEUP					RD3
 #define   PIN_MODEM_WAKEUP_DIR			TRISD3
 #define   MODEM_SW_LOW		1
 #define   MODEM_SW_HIGH	0
#else
 #define   PIN_MODEM_WAKEUP					RE3
 #define   PIN_MODEM_WAKEUP_DIR			TRISE3
 #define   MODEM_SW_LOW		0
 #define   MODEM_SW_HIGH	1
#endif

#define   PIN_SIM_ACTIVATE					RE7
#define   PIN_SIM_ACTIVATE_DIR			TRISE7



/* INPUTS */
#define	 PIN_ON_OFF_BUTTON				RE1

#define   PIN_INTERNAL_SIM					RB5

#define   PIN_EXTERNAL_SIM					RB6
#define   PIN_EXTERNAL_SIM_DIR			TRISB6

#define   PIN_HOOK			RB2
#define   PIN_HOOK_DIR		TRISB2
#define   PIN_ON_OFF			RE1


#define   LED	PIN_LED





/*
----------------- 
   Com1:	RC6, RC7; flow control: RC0, RC1 Reset: ???
   Com2: RG1, RG2;
-----------------
          SPI1: RC5, RC4, RC3
	I2C or SPI2: RD4, RD5, RD6
-----------------
   PWM: RC2 						  // SOUND
-----------------
   Analog: RA0						  // BATTERY
-----------------
   LCD: RD0, RD1, RD2, RD3; RA1, RA2, RA3; RA4 - Back Light
-----------------
   RB0 - SIM_SWITCH
-----------------
   KEYs: RF0 - RF7	//for PIC18F6527 (PIC18F8722 family)

*/


#endif


/* #define   PIN_POWER_CONTROL				RE4 			/\* MUST BE INPUT for DTMF receiver PIN(7): signal EST*\/ */
/* #define   PIN_POWER_CONTROL_DIR			TRISE4 */
